<template>
  <div class="good">
    <goods-list-item v-for="(item, index) in goodList" :goodItem="item" :key="index"></goods-list-item>
  </div>
</template>

<script>
import GoodsListItem from './GoodsListItem.vue'

export default {
  name: 'GoodsList',
  props: {
    goodList: {
      type:Array, 
      default(){
        return []
      }
    }
  },
  components: {
    GoodsListItem
  }
}
</script>

<style>
  .good {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 2px;
  }
</style>